import service from '@/utils/request'

// @Tags LevelOne
// @Summary 创建LevelOne
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.LevelOne true "创建LevelOne"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /levelOne/createLevelOne [post]
export const createLevelOne = (data) => {
  return service({
    url: '/levelOne/createLevelOne',
    method: 'post',
    data
  })
}

// @Tags LevelOne
// @Summary 删除LevelOne
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.LevelOne true "删除LevelOne"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /levelOne/deleteLevelOne [delete]
export const deleteLevelOne = (data) => {
  return service({
    url: '/levelOne/deleteLevelOne',
    method: 'delete',
    data
  })
}

// @Tags LevelOne
// @Summary 删除LevelOne
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除LevelOne"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /levelOne/deleteLevelOne [delete]
export const deleteLevelOneByIds = (data) => {
  return service({
    url: '/levelOne/deleteLevelOneByIds',
    method: 'delete',
    data
  })
}

// @Tags LevelOne
// @Summary 更新LevelOne
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.LevelOne true "更新LevelOne"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /levelOne/updateLevelOne [put]
export const updateLevelOne = (data) => {
  return service({
    url: '/levelOne/updateLevelOne',
    method: 'put',
    data
  })
}

// @Tags LevelOne
// @Summary 用id查询LevelOne
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.LevelOne true "用id查询LevelOne"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /levelOne/findLevelOne [get]
export const findLevelOne = (params) => {
  return service({
    url: '/levelOne/findLevelOne',
    method: 'get',
    params
  })
}

// @Tags LevelOne
// @Summary 分页获取LevelOne列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取LevelOne列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /levelOne/getLevelOneList [get]
export const getLevelOneList = (params) => {
  return service({
    url: '/levelOne/getLevelOneList',
    method: 'get',
    params
  })
}

// @Tags LevelOne
// @Summary 分页获取学习一级栏目列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取学习一级栏目列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /levelOne/getLevelOneList [get]
export const getLearnLevelOneList = (params) => {
  return service({
    url: '/levelOne/getLearnLevelOneList',
    method: 'get',
    params
  })
}
